<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title><%= title %></title>
  <style>
    * {
      padding: 0;
      margin: 0;
    }
    .center {
      display: flex;
      width: 100vw;
      height: 100vh;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      padding-bottom: 10vh;
    }
    .btn {
      padding: 10px 20px;
    }
    h3 {
      margin-bottom: 1em;
    }
    p {
      font-size: 20px;
      line-height: 1.5;
    }
  </style>
</head>
<body>
  <div class="center" style="display: <%= welcomeBox %>;">
    <h3>Hi! <%= userNickname %></h3>

    <p>Get AI Lab 当前未做移动端适配</p>
    <p>是否继续前往？</p>
    <a class="btn" href="<%= navigateTo %>">
      确定前往 Get AI Lab
    </a>
  </div>
  <div class="center" style="display: <%= errorMessage %>;">
    <h3>Hi! <%= userNickname %></h3>

    <p>很抱歉，当前账号没有权限</p>
    <p>请联系管理员</p>
  </div>

  <script>
    localStorage.setItem('X-token', '<%= token %>');
    localStorage.setItem('UserInfo', '<%= userinfo %>')
    // 自动跳转
    // location.href = '<%= navigateTo %>';
  </script>
</body>
</html>